package com.htt.bms.service.impl.system;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.htt.bms.dao.system.SysOrgDao;
import com.htt.bms.domain.sys.SysOrg;
import com.htt.bms.service.system.SysOrgService;
import com.htt.bms.service.system.SysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 侯婷婷
 * @version 1.0
 * @description 组织serviceimpl
 */
@Service
public class SysOrgServiceImpl extends ServiceImpl<SysOrgDao, SysOrg> implements SysOrgService {

    /**
     * 获取当前组织的所有子集
     * @param id
     * @return
     */
    @Override
    public List<SysOrg> getOrgChildren(Integer id) {
        return this.baseMapper.getOrgChilden(id);
    }
}
